@import '~antd/es/style/themes/default.less';

html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

.ant-pro-sider-menu-sider {
  box-shadow: 0 0 0 transparent !important;
}

.ant-menu-dark .ant-menu-inline.ant-menu-sub {
  background: #0005 !important;
}

.ant-pro-sider-menu-sider {
  overflow-y: auto;
}

// .ant-pro-sider-menu-sider {
//   overflow-x: hidden;
// }

.ant-pro-sider-menu-sider::-webkit-scrollbar {
  width: 0;
}

canvas {
  display: block;
}

.ant-pro-basicLayout {
  height: 100%;
}

.ant-layout-has-sider {
  height: 100% !important;
}

.ant-pro-page-header-wrap-children-content {
  margin: 14px 14px 0 !important;
}

.ant-pro-table-search {
  margin-bottom: 12px !important;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;

    &-thead>tr,
    &-tbody>tr {

      >th,
      >td {
        white-space: pre;

        >span {
          display: block;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active),
(-ms-high-contrast: none) {
  body .ant-design-pro>.ant-layout {
    min-height: 100vh;
  }
}